package com.sunny.core.bean;

import java.util.Date;

import javax.persistence.Id;
import javax.persistence.Transient;

import org.apache.commons.lang3.StringUtils;

import com.sunny.core.utils.CommonDateOper;
import com.sunny.core.utils.CommonDateUtils;

public class PersonInfo {
	@Id
    private String personPid;
	
    private String birthday;

    private String personName;
    
    private Integer personAge;

    private String personGender;

    private Integer isLunarCalendar;

    private String idCardNo;

    private Integer isdel;

    private String createUserid;

    private String createUsername;

    private Date createTime;

    private Date updateTime;
    

    public String getPersonPid() {
        return personPid;
    }

    public void setPersonPid(String personPid) {
        this.personPid = personPid == null ? null : personPid.trim();
    }

    public String getPersonName() {
        return personName;
    }

    public void setPersonName(String personName) {
        this.personName = personName == null ? null : personName.trim();
    }

    public String getPersonGender() {
        return personGender;
    }

    public void setPersonGender(String personGender) {
        this.personGender = personGender == null ? null : personGender.trim();
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday == null ? null : birthday.trim();
    }

    public Integer getIsLunarCalendar() {
        return isLunarCalendar;
    }

    public void setIsLunarCalendar(Integer isLunarCalendar) {
        this.isLunarCalendar = isLunarCalendar;
    }

    public String getIdCardNo() {
        return idCardNo;
    }

    public void setIdCardNo(String idCardNo) {
        this.idCardNo = idCardNo == null ? null : idCardNo.trim();
    }

    public Integer getIsdel() {
        return isdel;
    }

    public void setIsdel(Integer isdel) {
        this.isdel = isdel;
    }

    public String getCreateUserid() {
        return createUserid;
    }

    public void setCreateUserid(String createUserid) {
        this.createUserid = createUserid == null ? null : createUserid.trim();
    }

    public String getCreateUsername() {
        return createUsername;
    }

    public void setCreateUsername(String createUsername) {
        this.createUsername = createUsername == null ? null : createUsername.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

	public Integer getPersonAge() {
		return personAge;
	}

	public void setPersonAge(Integer personAge) {
		this.personAge = personAge;
	}

//	public Integer getAge() {
////		/**由出生日期计算出年龄 */
////		if(StringUtils.isNotBlank(this.birthday)){
////			int n = CommonDateUtils.calcAge(CommonDateOper.StringToUtilDate(this.birthday));
////			return n;
////		}else{
//			return age;
////		}
//	}
//
//	public void setAge(Integer age) {
//		this.age = age;
//	}
    
    
}